package com.h3c.nem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.h3c.nem.entity.SdTodoTask;
import com.h3c.nem.enums.OfferModifyApprovalEnum;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: ISdTodoTaskService
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: sd_todo_task service
 * Version: 1.0
 */
public interface ISdTodoTaskService extends IService<SdTodoTask> {

    void sendTodoTask(SdTodoTask task);

    /**
     * 创建todoTask
     * @param approvalUserIds 节点操作人 最后环节不传
     * @param approvalEnum 审批人提交时环节
     * @param flowId recordId
     * @param processId N7
     * @param subject 变更offer信息申请
     * @param bpUserId bp
     * @param bpUserName bp
     * @return todoTask
     */
    SdTodoTask createOfferModifyTodoTask(String approvalUserIds, OfferModifyApprovalEnum approvalEnum,
                                         String flowId, String processId, String subject, String bpUserId, String bpUserName);

    /**
     * 获取todoTask信息
     * @param processId 流程id
     * @param flowId 主键id
     * @return
     */
    SdTodoTask getTodoTask(String processId, String flowId);

    void getEndUserId(SdTodoTask todoTask);

    void updateTodoTask(SdTodoTask todoTask);
}
